package com.dsg.service.oil.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsg.dao.oil.DsgOilCardTypeMapper;
import com.dsg.entity.oil.DsgOilCardtype;
import com.dsg.service.base.impl.BaseServiceImpl;
import com.dsg.service.oil.IDsgOilCardtypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("dsgOilCardTypeService")
public class DsgOilCardTypeServiceImpl extends BaseServiceImpl<DsgOilCardTypeMapper, DsgOilCardtype> implements IDsgOilCardtypeService {

    @Autowired
    private DsgOilCardTypeMapper dsgOilCardTypeMapper;

    @Override
    public IPage<DsgOilCardtype> selectByList(Page<DsgOilCardtype> page, DsgOilCardtype hbcOilCardtype) {
        return page.setRecords(dsgOilCardTypeMapper.selectByList(page, hbcOilCardtype));
    }

    @Override
    public List<DsgOilCardtype> selectByList(DsgOilCardtype dsgOilCardtype) {
        return dsgOilCardTypeMapper.selectByList(dsgOilCardtype);
    }
}
